package com.jnzc.ocr.serv.system.api.impl;

import com.jnzc.ocr.serv.system.api.SysNoApi;
import com.jnzc.ocr.serv.system.service.SysNoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangcm
 * @version 1.0, 2017-10-07
 */
@RestController
public class SysNoApiImpl implements SysNoApi {

    @Autowired
    private SysNoService sysNoService;

    @Override
    public String getNextShopNo(Long companyId) {
        return sysNoService.getNextShopNo(companyId);
    }

    @Override
    public String getNextUserNo(Long companyId) {
        return sysNoService.getNextUserNo(companyId);
    }

    @Override
    public String getNextMemberNo(Long companyId) {
        return sysNoService.getNextMemberNo(companyId);
    }
}
